package org.foreveross.que.infra;

import java.util.List;

import org.foreveross.que.entity.MenuEntity;
import org.foreveross.que.infra.base.ddd.repository.IBaseRepository;

public interface MenuRepository extends IBaseRepository {
	/**
	 * 获取所有菜单
	 * @return
	 */
	public List<MenuEntity> getMenus(String sysType);
	/**
	 * 根据id查询
	 * @param mid
	 * @return
	 */
	public MenuEntity findEntity(String mid);
	/**
	 *  根据父节点查询子节点
	 * @param pid
	 * @return
	 * @throws Exception
	 */
	public List<MenuEntity> findByPid(String pid) throws Exception;
	
}
